package com.springbootmybatishw.dao;

import com.springbootmybatishw.entity.Student;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface StudentDao {

    //根据学生姓名查询
    public Student findStudentByName(String name);

    //查询全体学生
    public List<Student>findStudentAll();
    //增加学生信息
    public int insertStudent(Student student);
    //删除学生信息
    public int deleteStudent(Integer id);
    //更新学生信息
    public int updateStudent(Student student);
}
